package com.easy.dfc.mapper;


import com.easy.core.persistence.annotation.MyBatisMapper;
import com.easy.dfc.entity.ParaAllProduct;
import com.easy.dfc.entity.UserPara;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisMapper
public interface FactoryIndexMapper {

    void updateProductSetFactoryId();
    /**
     *
     * @param factoryId 商家ID
     * @param type 1-首页 2-新品
     * @return
     */
    List getFactoryImage(@Param(value = "factoryId") Integer factoryId, @Param(value = "type") Integer type);

    List getNewProduct(@Param(value = "factoryId") Integer factoryId, @Param(value = "pageIndex") Integer pageIndex, @Param(value = "pageSize") Integer pageSize);

    List getSalesRanking(@Param(value = "factoryId") Integer factoryId, @Param(value = "limitSize") Integer limitSize);

    List AllProductList(ParaAllProduct para);

    List getLiveVideo(UserPara para);

    List getViewVideo(UserPara para);
}